package local.blueheart.data.springdatademo.domain.config;

import local.blueheart.data.springdatademo.domain.system.AbstractDomainClass;
import lombok.Data;
import lombok.ToString;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
@Data
@ToString
public class ItemDO extends AbstractDomainClass {

    private String idName;

    private String name;

    private String alias;

    private String appField;

    private String isDefault;

    private String flagValue;

    @ManyToOne(cascade={CascadeType.MERGE,CascadeType.REFRESH},optional=false)
    @JoinColumn(name = "module_id")
    private ModuleDO moduleDO;


}
